package xfg.策略模式;

public class Context {
    private ICouponDiscount couponDiscount;
    //使用多态 构建对象出来
    public Context (ICouponDiscount couponDiscount) {
        this.couponDiscount = couponDiscount;
    }
    public double getCouponDiscount() {
        return couponDiscount.getDiscount();
    }
}
